/**
 * 
 */
package design_pattern.visitor.pc;

/**
 * @author linzq
 * 
 */
public class PC extends Composite {

  public PC() {
    parts.add(new IntegratedBoard());
    parts.add(new Case());
    parts.add(new HardDisk());
  }

  @Override
  public void accept(Visitor v) {
    System.out.println("PC has been visited.");
    super.accept(v);
  }

}
